home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / prg_casm / recio215.zip / PORTABLE < prev    next >
Text File  |  1996-10-26  |  2KB  |  67 lines

  1. This file lists changes to recio in order to compile it on other 
  2. compilers.  These changes are passed along to help you get the 
  3. recio library up and running quickly, but have not been tested by 
  4. the recio author nor guaranteed by the contributor.  Contributor's 
  5. changes may not have been tested with the latest version of recio.
  6.  
  7. If you compiler does not include the library files ltoa and ultoa,
  8. simple versions are found in section 3.6 of design.txt.
  9.  
  10. *** MICROSOFT VISUAL C++ ***
  11.  
  12. From: jamesd@freenet.vancouver.bc.ca (James Davidson) 
  13.       Thu Jun 29 13:18:52 1995
  14.  
  15. Here are the changes I had to make to recio.h to make the library 
  16. using the MS Visual C++ 1.5 compiler.
  17.  
  18. I added the #elif section to the compiler dependencies section 
  19. as follows:
  20.  
  21. /* compiler dependencies */
  22. #if defined (__BORLANDC__)
  23. #define NSBUFSIZ    34       /* string buffer sized for ltoa, dtoa, etc */
  24.  
  25. #ifndef TIME_T_MIN
  26. #define TIME_T_MIN  ((time_t)0)
  27. #endif
  28.  
  29. #ifndef TIME_T_MAX
  30. #ifndef LONG_MAX
  31. #include <limits.h>
  32. #endif
  33. #define TIME_T_MAX  ((time_t)LONG_MAX)
  34. #endif
  35.  
  36. /*
  37. ** Additions start here **
  38. */
  39. #elif defined _MSC_VER       /* _MSC_VER is defined for MS compilers */
  40. #define NSBUFSIZ    34       /* I just copied this -- not researched */
  41.  
  42. #ifndef TIME_T_MIN
  43. #define TIME_T_MIN  ((time_t)0)
  44. #endif
  45.  
  46. #ifndef TIME_T_MAX
  47. #ifndef LONG_MAX
  48. #include <limits.h>
  49. #endif
  50. #define TIME_T_MAX  ((time_t)LONG_MAX)
  51. #endif
  52.  
  53. #define ltoa _ltoa           /* Functions provided, just given different */
  54. #define ultoa _ultoa         /* names to comply with ansi standard */
  55.  
  56. #define stdprn _stdprn       /* Ditto for this variable */
  57. /*
  58. ** End of additions **
  59. */
  60.  
  61. #else
  62. #error For this compiler, you need to set:
  63. #error (1) NSBUFSIZ.  See DESIGN.TXT section 3.6.
  64. #error (2) TIME_T_MIN & TIME_T_MAX.  See DESIGN.TXT section 3.5.
  65. #endif
  66.  
  67.